<?php
/**
*
*/
	class downloadMore{
		public $currentdir;
		public function download($path,$zipname=""){
			//if(empty($needDown)){exit('RESOURCE ERROR');}
			//if(!is_array($needDown)){exit('needDown must be an array');}
			$zip = new PHPZip();
			// 	$downDate = array();
			// 	foreach($needDown as $key=>$value){
			// 		if(file_exists($value)){
			// 			$downDate[] = $value;
			// 		}
			// 	}

			// if(empty($downDate)){exit("not found file");}
			if(empty($zipname)){
				$zipname = time();
			}
			$zip->Zip($path,$zipname.".zip");
			
			upload::uploadWordFile($zipname."zip");
		}
	}
